#!/bin/bash

# 量子化测试脚本

echo "🧪 四维量子引擎测试套件"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"

# 1. 健康检查
echo ""
echo "1️⃣  健康检查..."
curl -s http://localhost:8080/api/quantum/health | jq '.'

# 2. 引擎信息
echo ""
echo "2️⃣  引擎信息..."
curl -s http://localhost:8080/api/quantum/info | jq '.'

# 3. 量子编码测试
echo ""
echo "3️⃣  量子编码测试..."
curl -s -X POST http://localhost:8080/api/quantum/encode \
  -H "Content-Type: application/json" \
  -d '{"data": "Hello Quantum World"}' | jq '.'

# 4. 四维处理测试
echo ""
echo "4️⃣  四维处理测试..."
curl -s -X POST http://localhost:8080/api/quantum/process \
  -H "Content-Type: application/json" \
  -d '{"data": "基于四维一体法则的量子处理"}' | jq '.'

# 5. 介观平衡报告
echo ""
echo "5️⃣  介观平衡报告..."
curl -s http://localhost:8080/api/quantum/balance | jq '.'

# 6. 宏观演化报告
echo ""
echo "6️⃣  宏观演化报告..."
curl -s http://localhost:8080/api/quantum/evolution | jq '.'

# 7. 客观周期报告
echo ""
echo "7️⃣  客观周期报告..."
curl -s http://localhost:8080/api/quantum/rhythm | jq '.'

echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ 测试完成！"
